import { checkAuth } from "@/utils/auth";
import { redirect } from "react-router-dom";

export const authLoader =async ():Promise<null|Response>=>{
    const isAuthenticated =checkAuth()
    if(!isAuthenticated){
        return redirect('/Promo')
    }
    return null
}